package com.migu.contacts.bean;

import android.text.TextUtils;

public class BirthdayDetailBean {
    //    生日提醒，选择生日的类型 1=公历 2=农历
    public int birthdayType;
    public String birthday;
    public String lunarBirthday;
    public String tipTime;
    public String content;
    public boolean tipStatus;
    public boolean important;

    public String getBirthdayType() {
        if (birthdayType == 1) {
            return "阳历生日 " + birthday;
        } else if (birthdayType == 2) {
            return "阴历生日 " + lunarBirthday;
        }
        return "";
    }

    public String getTipTime() {
        if (!TextUtils.isEmpty(tipTime)) {
            String[] s = tipTime.split(" ");
            if (s.length == 2) {
                return s[0];
            }
        }
        return "";
    }
}
